package cn.neusoft.controller;

import cn.neusoft.pojo.Business;
import cn.neusoft.query.BaseQuery;
import cn.neusoft.query.BusinessQuery;
import cn.neusoft.vo.ResultBean;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

@Api(value = "商家的API",description="商家相关的CRUD功能")
//@CrossOrigin  通过该注解我们完成允许跨域的设置  还可以通过配置类的方式来进行设置
@RestController
@RequestMapping("/business")
public class BusinessController extends BaseController<Business,BusinessQuery>{

//    @PostMapping("/all")
//    public ResultBean getAll(@RequestBody BusinessQuery businessQuery) {
//        System.out.println("BusinessController-------getAll");
//        return baseService.getAll(businessQuery);
//    }

}
